package org.dromara.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.business.domain.ShoppingCart;
import org.dromara.business.domain.vo.ShoppingCartVo;

import java.util.List;

/**
 * 购物车Service接口
 *
 * @author zlj
 * @date 2024-08-10
 */
public interface ShoppingCartService extends IService<ShoppingCart> {

    /**
     * 查询购物车列表
     */
    List<ShoppingCartVo> queryList();

    /**
     * 新增购物车
     */
    boolean add(Long goodsMallId, Integer isAdd);

    boolean clear();

    boolean removeCartGoods(Long goodsId);
}
